<div class="grid_4">
	<div class="da-panel">
		<div class="da-panel-header">
			<span class="da-panel-title"> <img
				src="images/icons/color/accept.png" alt="" /> Edit group user
			</span>
		</div>
		<div class="da-panel-content">
			<form id="da-ex-validate1-edit" class="da-form" action="" method="post"
				enctype="multipart/form-data">
				<?php if($this->Message!=''){?>
					<div class="da-message success">
	                     <?php echo $this->Message;?>
	                </div>
				<?php }?>
				<div id="da-ex-val1-error" class="da-message error"
					style="display: none;"></div>
				<div class="da-form-inline">
					<div class="da-form-row">
						<label>Name<span class="required">*</span></label>
						<div class="da-form-item large">
							<input type="text" name="group_name"
								value="<?php echo $this->GroupUser->group_name;?>" />
						</div>
					</div>
					<div class="da-form-row">
						<label>Type<span class="required">*</span></label>
						<div class="da-form-item small">
							<?php //echo $this->formSelect('type',$this->GroupUser->permission,array(),array('1'=>'Limit','2'=>'Full access','3'=>'Limit access'))?>
						</div>
					</div>
					<div class="da-form-row">
						<label>Avatar <span class="required">*</span></label>
						<div class="da-form-item large">
							<img style="width: 150px;height: 120px;padding:10px 0px" alt="<?php echo $this->GroupUser->group_name?>" src="<?php echo $this->GroupUser->getThumbImage()?>">
							<input type="file" name="image" class="da-custom-file" />

						</div>
						<label for="file1" class="error" generated="true" style="display: none;"></label>
					</div>
					<div class="da-form-row">
						<label>Permission<span class="required">*</span></label>
						<div class="da-form-item small">
							<?php echo $this->formSelect('permission',$this->GroupUser->permission,array(),array('1'=>'Limit','2'=>'Full access','3'=>'Limit access'))?>
						</div>
					</div>
					<div class="da-form-row">
						<label>Order<span class="required">*</span></label>
						<div class="da-form-item small">
							<input type="text" name="orders"
								value="<?php echo $this->GroupUser->orders?>" />
						</div>
					</div>
					<div class="da-form-row">
						<label>Status</label>
						<div class="da-form-item small">
							<span class="formNote">Status of attribute</span>
							<?php echo $this->formSelect('status',$this->GroupUser->status,array(),array('1'=>'Enable','0'=>'Disable'))?>
						</div>
					</div>
					<div class="da-form-row da-form-block">
						<label>List access selected</label>
						<div class="da-form-item small">
							<?php echo $this->formSelect('listselected',null,array('size'=>15),UserGroupPermission::getOption(array(),array('group_id=?'=>$this->GroupUser->id)));?>
						</div>
					</div>
					<div class="da-form-row da-form-block">
						<label>List access</label>
						<div class="da-form-item small">
							<select id="da-ex-picklist" name="listaccess[]" multiple="true" size="15">
								<?php echo $this->Options;?>
							</select>
						</div>
					</div>
				</div>
				<div class="da-button-row">
					<input type="submit" value="Update" class="da-button green" />
				</div>
			</form>
		</div>
	</div>
</div>